/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.service.title;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.source.entity.title.EleSourceTitle;
 import com.thinkgem.jeesite.modules.source.dao.title.EleSourceTitleDao;

/**
 * 标题管理Service
 * @author ZC
 * @version 2017-06-16
 */
@Service
@Transactional(readOnly = false)
public class EleSourceTitleService extends CrudService<EleSourceTitleDao, EleSourceTitle> {
	@Autowired
	private EleSourceTitleDao eleSourceTitleDao;
	public EleSourceTitle get(String id) {
		return super.get(id);
	}
	
	public List<EleSourceTitle> findList(EleSourceTitle eleSourceTitle) {
		return super.findList(eleSourceTitle);
	}
	
	public Page<EleSourceTitle> findPage(Page<EleSourceTitle> page, EleSourceTitle eleSourceTitle) {
		return super.findPage(page, eleSourceTitle);
	}
	
	@Transactional(readOnly = false)
	public void save(EleSourceTitle eleSourceTitle) {
		super.save(eleSourceTitle);
	}
	
	@Transactional(readOnly = false)
	public void delete(EleSourceTitle eleSourceTitle) {
		super.delete(eleSourceTitle);
	}
	@Transactional(readOnly = false)
	public void updateGroupId(String groupId,String resourceId) {
		eleSourceTitleDao.updateGroupId(groupId, resourceId);
	}
	
}